Ensure GtkWidget::style-updated is emitted before first size negociation
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 24 Mar 2011 23:31:46 +0000 (00:31 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 25 Mar 2011 13:33:54 +0000 (14:33 +0100)
commitb7f772eb93e8615ebf14f5bdde33bc59dd0b11bf
tree72184a49fb76c2a49ea58947d2222c4226a3a0ce
parent61e16b108b3271293ec73088a09491f054fdb1c5
Ensure GtkWidget::style-updated is emitted before first size negociation

Fixes BugĀ 639584 - initial emission of GtkWidget:style-set is
not happening.

GtkWidget was filtering out ::style-updated (and ::style-set)
emissions until the widget was realized in order to avoid often
useless updates during widget construction and placing.

This is now done instead until the widget has a parent/screen,
which ensures the initial emission happen prior to the first
size negociation, while still filtering out all early emissions
during construction.
gtk/gtkwidget.c